﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.XSchEmA.Resources
{
    class ResourceLoader
    {
        private static volatile ResourceLoader instance;

        private static object syncRoot = new Object();

        public static ResourceLoader Instance
        {
            get
            {
                if (instance == null)
                {
                    lock (syncRoot)
                    {
                        if (instance == null)
                        {
                            instance = new ResourceLoader();
                        }
                    }
                }
                return instance;
            }
        }

        public byte[] LoadAccessDatabaseTemplate()
        {
            return Pixysoft.IO.ImbeddedReader.Instance.GetResourceBytes(this, "access.mdb.template");
        }
    }
}
